/**
 * @fileOverview
 * @author iNahoo
 * @since 2019/11/12.
 */

class PCRScreen {
    constructor(x, y, w, h) {
        this._x = x;
        this._y = y;
        this.w = w;
        this.h = h;
    }

    x(x) {
        return this._x + x;
    }

    y(y) {
        return this._y + y;
    }

    getNextButtonPos() {
        return {
            x: this.x(this.w) - 140,
            y: this.y(this.h) - 28,
        }
    }

    getAgainButtonPos() {
        return {
            x: this.x(this.w) - 267,
            y: this.y(this.h) - 28,
        }
    }

    getAgainConfirmButtonPos() {
        return {
            x: this.x(this.w) - 327,
            y: this.y(this.h) - 128,
        }
    }

    getPoint(x, y, rx, ry) {
        return {
            x: this.x(x),
            y: this.y(y),
            rx,
            ry,
        }
    }


}

module.exports = PCRScreen;